/*
*	Developed by Leonardo Chatain and Pedro Dusso, at Universidade Federal do Rio Grande do Sul, Brasil, 2009/1
*	Source available at glpacman.codeplex.com
*/

#pragma once
#ifndef _POINT_3D_
#define _POINT_3D_
#include "Point2D.h"
#include <cmath>

class Point3D :
	public Point2D
{
private:
	float z;

public:

	Point3D();

	Point3D(float X, float Y, float Z);
	
	~Point3D();

	float getDistanceTo(Point3D other);

	// Getters and setters
	inline float getZ() { return z; }
	inline void setZ(float Z) { z = Z; }
	inline void setXYZ(float X, float Y, float Z) { x = X; y = Y; z = Z; }
};

#endif